import request from '../utils/axios'

export const setDiscuss = (data) => {
    return request({
        url: '/discuss/discussList',
        method: 'post',
        data
    })
}

export const getDiscussList = (params) => {
    return request({
        url: '/discuss/getDiscussList',
        method: 'get',
        params
    })
}

export const getItemApi = (id) => {
    return request({
        url: '/discuss/getItem',
        method: 'get',
        params: {
            id
        }
    })
}


export const setDianz = (data) => {
    return request({
        url: '/discuss/Dianz',
        method: 'post',
        data
    })
}

export const getDianz = (params) => {
    return request({
        url: '/discuss/getDianz',
        method: 'get',
        params
    })
}


//取消点赞
export const delteDianz = (params) => {
    return request({
        url: '/discuss/delteDianz',
        method: 'get',
        params
    })
}